#pragma once
#include <qobject.h>
#include <qprocess.h>
class xray_prediction :
    public QObject
{
    Q_OBJECT
public slots:
    void prediction(const QString& XRayRoot) {
        QProcess process(this);
        process.start("G:/pythonProject/dist/app2/app2.exe", QStringList() << XRayRoot);
        process.waitForStarted();
        process.waitForFinished();
        QString dosRet = QString::fromLocal8Bit(process.readAllStandardOutput());
        emit predictResult(dosRet);
    }
signals:
    void predictResult(const QString& result);
};

